<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数调用的方式</title>
    <script language="JavaScript">
        function love() {
            alert("I Love You 吕林萍")
        }
    </script>
</head>
<body>
    <a href="javascript:love()">i love 吕林萍</a>
</body>
</html>